package home.bean;

import java.io.Serializable;
import java.util.List;

public class ApiResponse implements Serializable {
    private static final long serialVersionUID = 1L;
    private int resultCode;
    private String message;
    private Data data;

    // 构造方法
    public ApiResponse() {}

    public ApiResponse(int resultCode, String message, Data data) {
        this.resultCode = resultCode;
        this.message = message;
        this.data = data;
    }

    // Getter 和 Setter
    public int getResultCode() { return resultCode; }
    public void setResultCode(int resultCode) { this.resultCode = resultCode; }

    public String getMessage() { return message; }
    public void setMessage(String message) { this.message = message; }

    public Data getData() { return data; }
    public void setData(Data data) { this.data = data; }

    // 重写 toString 方便调试
    @Override
    public String toString() {
        return "ApiResponse{" +
                "resultCode=" + resultCode +
                ", message='" + message + '\'' +
                ", data=" + data +
                '}';
    }
}




